ActionController::Base.send(:include, PcrWebApps::HttpCredentials)
# Load http_basic credentials from http_credentials.yml if not in test environment
unless RAILS_ENV == 'test'
  credentials = YAML::load(File.open("#{RAILS_ROOT}/config/http_credentials.yml"))
  PcrWebApps::HttpCredentials::CREDENTIALS = credentials[RAILS_ENV] unless credentials[RAILS_ENV].nil?
end
